 {extend name="layout:base" /}{block name="content"}
 <?php
$global=isSupperManagerForSession();
 ?>
 
 


<style type="text/css">
  .yg_inp>input{margin-bottom: 10px;}
#zc_detail table{margin:10px;}
#zc_detail table tr td{
	border: 1px solid #ddd;
	height:30px;
	padding-left:5px;
	padding-right:5px;
} 
</style>

<section class="topBanners">
         <div class="icon"></div>
         <div class="topBannersNav">
         <span data-url="/admin/my/jcApply" onclick="ContentLoadGo('/admin/my/jcApply')">我的申请</span>
         >
         <span data-url="/admin/my/jcInfoData" onclick="ContentLoadGo('/admin/my/jcInfoData?id=<?php echo $info['id'] ?>')">工单详情</span></div>
      </section>
 <section id="zc_detail">

      
     <input type="hidden" name="depthID" id="depthID" value="<?php echo $info['id'] ?>">
   <table class="ordertable" border="0" cellspacing="0" cellpadding="0">
   <?php
   if($info['op_type']==1)
	{
   ?>
     <tr>
       
       <td width="120"><div align="right">申请人</div></td>
       <td width="180"  class="tr_cons"><?php echo  $info['bxUser']['nickname']; ?></td>
     
       <td width="120"><div align="right">申请部门</div></td>
       <td width="180"  class="tr_cons">
       <?php 
            if($info['bxSencodDept'])
			{
                     echo $info['bxSencodDept']['depname'];
			}else if($info['bxFirstDept'])
			{
                     echo $info['bxFirstDept']['depname'];
			}
       ?>
       </td>
       <td width="120"><div align="right">联系电话</div></td>
       <td width="180"  class="tr_cons"><?php echo  $info['phone']; ?></td>
       </tr>
       
       <tr>
       <td width="120"><div align="right">会议时间</div></td>
       <td width="180"  class="tr_cons"><?php echo  $info['stime']; ?></td>
        <td width="120"><div align="right">会议名称</div></td>
       <td width="180"  class="tr_cons">
       <?php 
         echo $info['name'];
       ?>
       </td>
        <td width="120"><div align="right">会议室名称</div></td>
       <td width="180" class="tr_cons">
          <?php
          if($info['office_no'])
			{
      		echo $info['office_no'];
    		}
          ?>
       </td>
       
     </tr>
     
     <tr>
       <td width="120"><div align="right">服务人数</div></td>
       <td width="180"  class="tr_cons"><?php echo  $info['people_num']; ?>人</td>
        <td width="120"><div align="right">创建时间</div></td>
       <td width="180"  class="tr_cons">
       <?php 
         echo date("Y-m-d H:i:s",$info['ctime']);
       ?>
       </td>
        <td width="120"><div align="right"></div></td>
       <td width="180" class="tr_cons">
          
       </td>
       
     </tr>
     <?php
     }
	else  if($info['op_type']==2)
	{
	?>
	
     <tr>
       
       <td width="120"><div align="right">申请人</div></td>
       <td width="180"  class="tr_cons"><?php echo  $info['bxUser']['nickname']; ?></td>
     
       <td width="120"><div align="right">申请部门</div></td>
       <td width="180"  class="tr_cons">
       <?php 
            if($info['bxSencodDept'])
			{
                     echo $info['bxSencodDept']['depname'];
			}else if($info['bxFirstDept'])
			{
                     echo $info['bxFirstDept']['depname'];
			}
       ?>
       </td>
       <td width="120"><div align="right">联系电话</div></td>
       <td width="180"  class="tr_cons"><?php echo  $info['phone']; ?></td>
       </tr>
       <tr>
       <td width="120"><div align="right">餐饮时间</div></td>
       <td width="180"  class="tr_cons"><?php echo  $info['stime']; ?></td>
        <td width="120"><div align="right">服务人数</div></td>
       <td width="180"  class="tr_cons"><?php echo  $info['people_num']; ?>人</td>
        <td width="120"><div align="right">创建时间</div></td>
       <td width="180"  class="tr_cons">
       <?php 
         echo date("Y-m-d H:i:s",$info['ctime']);
       ?>
       </td>
       
     </tr>
     
    
	
	
	<?php
	}
    else  if($info['op_type']==3)
	{
	?>
	
     <tr>
       
       <td width="120"><div align="right">申请人</div></td>
       <td width="180"  class="tr_cons"><?php echo  $info['bxUser']['nickname']; ?></td>
     
       <td width="120"><div align="right">申请部门</div></td>
       <td width="180"  class="tr_cons">
       <?php 
            if($info['bxSencodDept'])
			{
                     echo $info['bxSencodDept']['depname'];
			}else if($info['bxFirstDept'])
			{
                     echo $info['bxFirstDept']['depname'];
			}
       ?>
       </td>
       <td width="120"><div align="right">联系电话</div></td>
       <td width="180"  class="tr_cons"><?php echo  $info['phone']; ?></td>
       </tr>
       <tr>
       <td width="120"><div align="right">部门办公室号</div></td>
       <td width="180"  class="tr_cons"><?php echo  $info['office_no']; ?></td>
        
        <td width="120"><div align="right">创建时间</div></td>
       <td width="180"  class="tr_cons">
       <?php 
         echo date("Y-m-d H:i:s",$info['ctime']);
       ?>
       </td>
       <td width="120"><div align="right"></div></td>
       <td width="180"  class="tr_cons"></td>
     </tr>
     
    
	
	
	<?php
	}
     ?>
   
       <tr>
	        <td ><div align="right" style="display:block;width:100px;">状态</div></td>
	        <td colspan="7" style="width:100%;min-height:50px;">
	        <div style="width:100%;padding:10px 4px;line-height:30px;">
	        <?php
	        
if($info['stat']==0)
{
  echo '<font style="color:red">提交</font>';
}
else if($info['stat']==2)
{
  echo '<font style="color:green">受理</font>';
}
else if($info['stat']==3)
{
  echo '<font style="color:red">拒绝</font>';
}
else if($info['stat']==4)
{
  echo '<font>完成</font>';
}
           ?>
	        </div>
	        </td>
        </tr>
   
   
        <tr>
	        <td ><div align="right" style="display:block;width:100px;">需求</div></td>
	        <td colspan="7" style="width:100%;min-height:50px;">
	        <div style="width:100%;padding:10px 4px;line-height:30px;">
	        <?php
	        echo $info['conts'];
        ?>
	        </div>
	        </td>
        </tr>
     
     <tr>
	        <td ><div align="right" style="display:block;width:100px;">进度</div></td>
	        <td colspan="7" style="width:100%;min-height:50px;">
	        <div style="width:100%;padding:10px 4px;line-height:30px;">
	        <?php
	        echo $info['log'];
        ?>
	        </div>
	        </td>
     </tr>
     
     
     
   </table>
  
     
     </section>
     
     
       <script type="text/javascript">
      
      function myResearch(){
		   var url="/admin/my/jcInfoData";
		   var id=$("#depthID").val();
		   var param={
				 id:id
		   };
		   ContentGet(url,param);
	   }
     
      
           $(function(){
        	   //设置搜索栏
        	   $(".research").click(function(){
        		   var page =$(this).attr("page");
        		   $("#cpage").val(page);
        		   myResearch();
        		   
        	   });
        	   
        	   
        	   
          	
        	 

        	   $(".info").click(function(){
        		   var that =this;
        		   var url="/admin/devlist/infoData";
        		   var id=$(that).parent().parent().attr('data-id');
        		   var param={
        				   id:id
        		   };
        		  // MyContentLoad(url,param);
        			ContentGet(url,param)	 
        				
        			 //弹出：确认按钮
        			
        	   });
        	   
        	  
  			   //全选
  		
  				$("#all").click(function(){   
			    	if(this.checked){   
			        	$(".checkBoxInput").attr("checked", true);  
			        	$(".checkBoxInput").prop("checked", true);  
			    	}else{   
						$(".checkBoxInput").attr("checked", false);
						$(".checkBoxInput").prop("checked", false);
			    	}   
			    	var se=getAllSelectItem();
			    	//console.log(se);
			 	}); 
  				 //导航
         	   $(".topBannerItem").click(function(){
         		   
         		   var attArr = $(this).attr();
             	   goToSelfLink(attArr);
             	   
         			
         	   });
  			   
  				 $(".firstTypeR").change(function(){
    				   
    				   var url="/admin/devlist/selectTypeChange";
    		   		    var id=$(this).val();
    		   		   
    		   		    var param={
    		   				   id:id
    		   				   
    		   		    };
    				   AjaxRequest(url,param,function(data){
    		  			   if(data.err==0)
    		  			   {
    		  				   var html='<option value="">--选择--</option>';
    		  				   $.each(data.data,function(i,v){
    		  					 html +='<option value="'+v.id+'">'+v.dname+'</option>'
    		  				   })
    		  				   $(".secondTypeR").html(html);
    		  			   }
    		  			   else
    		  			   {
    		  				   ErrTiShi("操作失败");
    		  			   }
    		  		   	});
    				   
    			   });
  			
           });
           
	  </script>
	    {/block}